<template>
	<view class="chatSetting-page">
		<tui-list-cell class="margin-tb">
			<view class="info">
				<image src="@/static/app/爱心.png" class="img" />
				<view class="title">{{title}}</view>
			</view>
		</tui-list-cell>
		<tui-list-view>
			<tui-list-cell padding="14px 15px" :size="16" :hover="false">
				<view class="item">
					置顶聊天<tui-switch @change="changeTop"></tui-switch>
				</view>
			</tui-list-cell>
			<tui-list-cell padding="14px 15px" :size="16" :hover="false">
				<view class="item">
					消息免打扰<tui-switch @change="changeCloseMsg"></tui-switch>
				</view>
			</tui-list-cell>
		</tui-list-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: "",
				type: ""
			}
		},
		onLoad(options) {
			if (options.title) {
				this.title = options.title;
				this.type = options.type;
			}
		},
		methods: {
			changeTop() {

			},
			changeCloseMsg() {

			}
		}
	}
</script>

<style lang="scss" scoped>
@import "./chatSetting.scss";
</style>
